
class Role extends CommonModels {
    tableFields() {
        return {
            "app_id": {
                "label": "端",
                "type": "tinyint(2)"
            },
            "number": {
                "label": "编号",
                "type": "varchar(255)"
            },
            "name": {
                "label": "名字",
                "type": "varchar(255)"
            },
            "level": {
                "label": "等级",
                "type": "bigint(20)"
            },
            "is_admin": {
                "label": "是否为管理员, 0不是 1是",
                "type": "tinyint(1)"
            },
            "remark": {
                "label": "备注",
                "type": "text"
            },
            "creator": {
                "label": "创建人",
                "type": "bigint(20)"
            }
        }
    }

    rules() {
        return {

        }
    }

    tableName() {
        return '{{%role}}';
    }

}

export default Role;